'''
Created on 17.11.2011

@author: mphkh
'''
#from datetime import date
#from Calendar.Iceland import Iceland
#from TimeUtils.daycount import *
#from TimeUtils.daterolling import *
#from TimeUtils.utils import *
#from IRUtils import *
from IRUtils.REIBOR import *


#cal = Iceland()
#daterollingconvention = DateRollingConvention.modifiedfollowing
#daycountbasis = DayCountBasis.basis_act360

ddate = date(2011,11,21)

#maturity1m = addmonth2(ddate,1, cal, daterollingconvention,1)

#mm = MoneyMarketRate(ddate, maturity1m, 0.0474, daycountbasis, cal)
nn = REIBOR1M(ddate, 0.0474)

#print mm.discountfactor()
#print mm.yearfrac()
print 'nn ', nn.discountfactor()
print 'nn ', nn.yearfrac()
print 'nn ', nn.continuousrate()
